package cc.wubo.jpa.repository;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.QueryHints;
import org.springframework.data.repository.CrudRepository;

import cc.wubo.jpa.entity.Book;

public interface BookRepository extends CrudRepository<Book, Integer>{
	@QueryHints(@QueryHint(name="org.hibernate.cacheable",value="true"))
	public Book findById(Integer id);

}
